<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			const sessionValue = uni.getStorageSync("sessionValue");
			    if (sessionValue) {
			      // 如果 sessionValue 存在，直接跳转到首页
			      uni.switchTab({
			        url: "/pages/index/index0",
			      });
			    }
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="less">
	@import "./components/colorui/main.css";
	@import "./components/colorui/icon.css";
	@import "./components/u-parse/u-parse.css";

	/*每个页面公共css */
	.mc {
		margin: 0px auto;
	}

	.navigator-hover {
		background: none;
	}

	uni-swiper .uni-swiper-dot {
		width: 26px;
		height: 3px;
		border-radius: 0px;
	}

	uni-swiper .uni-swiper-dot.uni-swiper-dot-active {
		background: rgba(251, 95, 36, 1);
	}

	page {
		background: #EFEEF3;
	}

	.page-form {
		.pageblock {
			background: #ffffff;

			.cu-form-group .title {
				min-width: calc(4em + 15px);
			}

			.s-radio {
				display: flex;

				.dd {
					display: flex;
					align-items: center;
					margin-left: 20px;

					.txt {
						margin-left: 5px;
					}
				}
			}
		}
		
		.cu-form-check {
			padding: 10px 20px;
			display: flex;
			align-items: center;
			.txt {
				display: flex;
				font-size: 12px;
				margin-left: 5px;
				.atxt {
					color: #687085;
				}
			}
		}

		.atitle {
			font-size: 16px;
			color: #919095;
			padding: 13px 15px;
			background: #EFEEF3;
		}

		.btnsubmit {
			margin: 20px;
			background: #45AA30;
			border: 1px solid #45AA30;
		}
	}
</style>
